package immutable;

public class FinalStringDemo02 {
    public static void main(String[] args) {
        String a = "wukong2";
        final String b = getWuhong();// 如果这里是常量，那么就是true，但是如果是方法调用，那么就是false
        String c = b + 2;
        System.out.println((a == c)); // false
    }
    private static String getWuhong() {
        return "wukong";
    }
}
